home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set spriteNumber to the clickOn
- puppetSprite(spriteNumber, 1)
- set normal to the name of cast the mouseCast
- set pressed to the name of cast the mouseCast
- put "•" into char 1 of pressed
- if pressed = "•" then
- puppetSprite(spriteNumber, 1)
- exit
- end if
- repeat while the mouseDown
- set the castNum of sprite spriteNumber to cast pressed
- if not rollOver(spriteNumber) then
- set the castNum of sprite spriteNumber to cast normal
- updateStage()
- puppetSprite(spriteNumber, 0)
- exit
- end if
- updateStage()
- end repeat
- if the name of cast the castNum of sprite 40 = "*boutonOFF" then
- set A to "Sorry, the MIDI channel is still activated even if the DEMO is finished. You must first close it in order to get some help."
- set B to "To do this, simply click on the “Stop MIDI demo” button."
- set C to A & RETURN & RETURN & B
- alert(C)
- puppetSprite(spriteNumber, 0)
- exit
- end if
- set the castNum of sprite spriteNumber to cast normal
- puppetSprite(spriteNumber, 0)
- updateStage()
- go("help")
- end
-